package gggameserver;

import gggameserver.testbed.GGTestBedFactory;
import org.apache.log4j.Logger;

public class GGGameSlave implements Runnable {

    private static org.apache.log4j.Logger log = Logger.getLogger(GGGameSlave.class);

    private Thread thread;
    private GGTestBedFactory testbed_fac = null;
    
    public GGGameSlave() {
		log.info("Initializing GGGameSlave...");
		thread = new Thread(this);

		log.info("Initializing test-bed factory...");
		testbed_fac = GGTestBedFactory.createTestBedFactory();
		
		log.info("Initializing GGGameSlave DONE.");
    }
    
    public void start() {
    	this.thread.start();
    }
    
	@Override
	public void run() {
		// loop
		// connect to server
		
		
//		 if get connection then 
//		  - create local testbed
//		  - download data
//		  - wait for command
//		  - when end, then close testbed
	}

}
